import { request } from './request.js'

// 首页数据
export function getCategory() {
  return request({
    url: '/api/goods'
  })
}

export function getCategoryGoods(order='sales', cid=0, page=1) {
  return request({
    url: `/api/goods?category_id=${cid}&page=${page}&${order}=1`
  })
}